package com.das.mechanic_base.mapi.response;

import io.reactivex.Observer;
import io.reactivex.disposables.Disposable;

/**
 * Created by chenSi on 2018/3/27.
 */

public abstract class BaseObserver<T> implements Observer<T> {

    @Override
    public void onSubscribe(Disposable d) {

    }

    @Override
    abstract public void onNext(T t);

    @Override
    public void onError(Throwable throwable) {
    }

    @Override
    public void onComplete() {

    }

    protected abstract String LoadingMessage();

    protected abstract void NoNetCallBack();

    public abstract void showErrorStatus(int status);
}

